<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui">
    <body>
        <ui:composition>
			<p:tabView id="tabView" var="player" value="#{tabBean.players}">  
			    <p:tab id="playerTab" title="#{player.name}">  
			        <h:panelGrid columns="2" cellpadding="10">  
			            <p:graphicImage id="playerImg" value="/images/barca/#{player.photo}" />  
			            <h:panelGrid columns="2" cellpadding="10">  
			                <h:outputText value="Name: " />  
			                <h:outputText id="playerName" value="#{player.name}" style="font-weight: bold"/>  
			  
			                <h:outputText value="Number: " />  
			                <h:outputText id="playerNumber" value="#{player.number}" style="font-weight: bold"/>  
			  
			                <h:outputText value="Position: " />  
			                <h:outputText id="playerPosition" value="#{player.position}" style="font-weight: bold"/>  
			            </h:panelGrid>  
			        </h:panelGrid>  
			    </p:tab>  
			</p:tabView>
        </ui:composition>
    </body>
</html>